import Layout from "@/views/layout/index.vue";
export default [{
    path: "/home",
    name: "home",
    meta: {
      title: "首页",
      icon: "icon-panel",
    },
    component: Layout,
    redirect: "/home/index",
    children: [{
        path: "index",
        name: "home-index",
        meta: {
          title: "仪表盘",
        },
        component: () => import("@/views/home/index.vue"),
      },
      {
        path: "data",
        meta: {
          title: "设备数据",
        },
        name: "data-view",
        component: () => import("@/views/home/data.vue"),
      },
    ],
  },

  {
    path: "/demo",
    name: "demo",
    component: Layout,
    meta: {
      title: "demo",
      icon: "icon-d-right-arrow",
    },
    redirect: "/demo/demo1",
    children: [{
        path: "demo1",
        meta: {
          title: "demo1",
        },
        name: "demo-demo1",
        component: () => import("@/views/demo/demo1.vue"),
      },
      {
        path: "demo2",
        meta: {
          title: "demo2",
        },
        name: "demo-demo2",
        component: () => import("@/views/demo/demo2.vue"),
      },
    ],
  },
  {
    path: "/account",
    name: "account",
    component: Layout,
    meta: {
      title: "account",
      icon: "icon-account",
    },
    redirect: "/account/list",
    children: [{
        path: "list",
        meta: {
          title: "list",
        },
        name: "account-list",
        component: () => import("@/views/account/list.vue"),
      },
      {
        path: "add",
        meta: {
          title: "add",
        },
        name: "account-add",
        component: () => import("@/views/account/add.vue"),
      },
    ],
  },
  {
    path: "/measurement",
    name: "measurement",
    component: Layout,
    meta: {
      title: "measurement",
      icon: "icon-signal",
    },
    redirect: "/measurement/list",
    children: [{
        path: "list",
        meta: {
          title: "list",
        },
        name: "measurement-list",
        component: () => import("@/views/measurement/list.vue"),
      },
      {
        path: "add",
        meta: {
          title: "add",
        },
        name: "measurement-add",
        component: () => import("@/views/measurement/add.vue"),
      },
    ],
  },
  {
    path: "/fee",
    name: "fee",
    component: Layout,
    meta: {
      title: "fee",
      icon: "icon-fyxx",
    },
    redirect: "/fee/recharge",
    children: [{
        path: "recharge",
        meta: {
          title: "recharge",
        },
        name: "fee-recharge",
        component: () => import("@/views/fee/recharge.vue"),
      },
      {
        path: "usage",
        meta: {
          title: "usage",
        },
        name: "fee-usage",
        component: () => import("@/views/fee/usage.vue"),
      },
    ],
  },
];